package com.vids.constant;

import com.vids.enums.DataCategoryEnum;

import java.util.Arrays;
import java.util.List;

/**
 * @author ly
 */
public class GlobalConstant {

    /**
     * ResponseStatus 中的 返回参数 requestURL
     * 视频设备工作状态:1在线、2离线、9其他 O
     */
    // *****************返回码开始*****************
    public static Integer RESPONSE_SUCCESS_CODE = 200;
    public static Integer RESPONSE_FAIL_CODE = 1;
    public static String REGISTER_CODE = "1";
    public static String UNREGISTER_CODE = "2";
    public static String KEEPALIVE_CODE = "9";
    public static Integer RESPONSE_TO_REGISTER_CODE = 444;
    public static String RESPONSE_FAIL_MSG = "内部错误";
    public static String SPLIT = "@_@";

    public static Integer SUBSCRIBE_STATUS_ING = 0;
    public static Integer UNSUBSCRIBE_STATUS = 1;
    public static Integer SUBSCRIBE_STATUS_EXPIRE = 9;

    public static Integer OPERAT_TYPE = 0;
    public static Integer UNOPERAT_TYPE = 1;
    public static String UNREGIST_DEVICE = "unregist_device";
    // 接口调用的请求头
    public static String USER_IDENTIFY = "User-Identify";

    /** 本级视图库对应的表数据id */
    public static final Integer VIID_ID = 1;
    public static final String VIID_ID_KEY = "selfViidServer";

    /** 订阅通知一次发送的数据大小 */
    public static int HTTP_SEND_SIZE = 10;

    public static List<String> SUBSCRIBE_DETAIL_LIST = Arrays.asList(DataCategoryEnum.PERSON.getViidDataType(),
            DataCategoryEnum.FACE.getViidDataType(),DataCategoryEnum.MOTORVEHICLE.getViidDataType(),
            DataCategoryEnum.NONMOTORVEHICLE.getViidDataType(),DataCategoryEnum.THING.getViidDataType(),
            DataCategoryEnum.IMSI.getViidDataType());

}
